<template>
    <div class="dynamic">
        <vue-seamless-scroll :data='dynamicList' class="dynamic-warp">
            <div class="dynamic-list" v-for="item in dynamicList" :key="item.assessId">
                <div class="dynamic-list-left">
                     <img src="http://public.nodebook.top/fd123a3921e910809fba9da0101bf8f6.jpg" /> 
                </div>
                <div class="dynamic-list-right">
                    <p class="dynamic-list-right-top">
                        <span>{{item.assessUser}}</span>
                        <span>{{item.assessContent}}</span>
                    </p>
                    <p class="dynamic-list-right-bottom">
                        {{item.createTimeStr}}
                    </p>
                </div>
            </div>
        </vue-seamless-scroll>
    </div>
</template>

<script>

import {selectTenAccess} from '@/assets/api/utils.js'
export default {
    data(){
        return {
            dynamicList:[]
        }
    },
    mounted(){
        this.tenAssess()
    },
    methods:{
        tenAssess(){
            selectTenAccess().then((resp)=>{
                if(resp.code==200){
                    
                    this.dynamicList=resp.data
                   
                }
            })
        }
    }
}
</script>

<style scoped>
.dynamic{
    width: 100%;
    height: auto;
}
.dynamic-warp{
    height: 651px;
    overflow: hidden;
}
.dynamic-list{
    width: 100%;
    height: 93px;
    padding: 25px 0;
    border-bottom: 1px solid #dcdfe6;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.dynamic-list:hover{
    background: #DBFEFB;
}
.dynamic-list-left,.dynamic-list-left img{
    width: 42px;
    height: 42px;
    border-radius: 21px;
    overflow: hidden;
    margin-right: 25px;
}
.dynamic-list-right{
    flex: 1;
    height: 42px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    
}
.project-list-left-icon{
    width: 48px;
    height: 48px;
    fill: currentColor; 
    color: #ffffff;
    
}
.dynamic-list-right .dynamic-list-right-top{
    font-size: 14px;
}
.dynamic-list-right-top span:nth-child(1){
    color: #3B3C3C;
    margin-right: 15px;
}
.dynamic-list-right-top span:nth-child(2){
    color: #2E93FD;
}
.dynamic-list-right-bottom{
    color: #999999;
    font-size: 12px;
}
</style>